package exceptionDemo;

public class ArraysTest {
	int[] arr = {3,4,4,2,23};
	public void test(){
		try{
			for(int i = 0; i<= arr.length;i++){
				System.out.println(arr[i]);
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		ArraysTest arraysTest = new ArraysTest();
		arraysTest.test();
	}
}
